import { LAYOUT } from '@/router/constants';
import type { RouteRecordItem } from 'vc/src/router';

const EnvironmentCredit: RouteRecordItem = {
  path: '/environmentCredit',
  component: LAYOUT,
  redirect: '/environmentCredit/environmentCreditRate',
  meta: {
    title: '环境信用',
    menuIndex: 2,
    subMenuIndex: 1
  },
  children: [
    {
      path: 'environmentPenalties',
      component: () => import('@/views/modules/environmentCredit/environmentPenalties/index.vue'),
      meta: {
        title: '环保处罚'
      }
    },
    {
      path: 'environmentBlackList',
      component: () => import('@/views/modules/environmentCredit/environmentBlackList/index.vue'),
      meta: {
        title: '环保黑名单'
      }
    },
    {
      path: 'environmentCreditRate',
      component: () => import('@/views/modules/environmentCredit/environmentCreditRate/index.vue'),
      meta: {
        title: '环境信用评价'
      }
    }
  ]
};

export default EnvironmentCredit;
